/*
 * 展示物料预定明细交易
 * 参数   交易码：trancode=421200
 */

package org.ccams.tran;


import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

import org.ccams.domain.TPlanindetail;
import org.ccams.util.ConvertUtil;

public class Tran421200 extends AbstractJsonTran {

	@SuppressWarnings("unchecked")
	public void buildJSONObject(Map model, JSONObject json,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		String hid = request.getParameter("hid");
		List<TPlanindetail> list = getCcamsService().getTplanindetailDao().getById(hid);		
		json.putAll(ConvertUtil.generate(list));
	}
}
